{foreach $classes as $c}
  <div class="row form-group">
     <label class="col-sm-7 control-label" for="classchk_{$c.class_object_id}">{$c.class_name} [{$c.agegroup_shortname}]</label>
     <div class="col-sm-1">
       <input type="hidden" value="{$c.classterm_published}" name="classterms[{$c.class_object_id}]" class="value" id="classterm_val_{$c.class_object_id}">
       <input class="chckbx" type="checkbox" {if $c.classterm_published eq 1}checked="checked"{/if} onclick="if($(this).is(':checked')){ $(this).parent().children('.value').val('1') }else{ $(this).parent().children('.value').val('0') }" id="classchk_{$c.class_object_id}"> 
     </div>
   </div>
{/foreach} 

